<!--COLUMN 1-->
<div class="FourColGrid_c1">
<img src="<?php echo Router::url('/')?>app/webroot/img/avatar.jpg" width="100" height="100" alt="locumname">
</div>
<!--COLUMN 1-->

<!--COLUMN 2-->
<div class="FourColGrid_c2">
<h1 class="TitleOne"><?php echo $GLOBALS['Salutations'][$locum['Locum']['Salutation']].' '.$locum['Locum']['FirstName'].' '.$locum['Locum']['LastName'] ; ?></h4>
<h2 class="TitleTwo"><?php echo $GLOBALS['Country'][$locum['Locum']['Country_id']];?></h2>
<p><b>Member since</b> <?php echo date('Y-m-d',strtotime($locum['Locum']['MatchMemberSince']))?><br>
<b>Last logged in</b> <?php echo $locum['Locum']['LastLoggedIn']?><br>
<b>Pharmacist registration</b> <?php echo  $locum['Locum']['DateOfPharmacist'];?><br>
<b>GPHC</b> <?php echo $locum['Locum']['GPHCNumber']?></p>
<p>&nbsp;</p>

<h4 class="TitleTwo">IT Compatibility</h4>
<ul class="listOne">
<?php 
            if(trim($locum['Locum']['ITCompatibility']))
            {
               $a_ITCompatibility = explode(',',$locum['Locum']['ITCompatibility']);
                foreach ($a_ITCompatibility as $k=>$value)
                {
                    echo '<li>'.$GLOBALS['ITCompatibility'][$value].'</li>' ;
                }
            }
            
?>
</ul>
<p>&nbsp;</p>

<p><b>EPS1 Ready</b> - <?php echo trim($locum['Locum']['EPS1Ready'])? 'Yes':'No'; ?><br>
<b>EPS2 Ready</b> - <?php echo trim($locum['Locum']['EPS2Ready'])? 'Yes':'No'; ?></p>
<p>&nbsp;</p>

<h4 class="TitleTwo">Essential Services</h4>
<ul class="listOne">
<?php 
            if(trim($locum['Locum']['EssentialServices']))
            {
                $a_EssentialServices = explode(',',$locum['Locum']['EssentialServices']);
            
                foreach ($a_EssentialServices as $k=>$value)
                {
                    echo '<li>'.$GLOBALS['EssentialServices'][$value].'</li>' ;
                }
            }
?>
</ul>
<p>&nbsp;</p>

<h4 class="TitleTwo">Advanced Services</h4>
<ul class="listOne">
<?php 
            if(trim($locum['Locum']['AdvancedServices']))
            {
                $a_AdvancedServices = explode(',',$locum['Locum']['AdvancedServices']);
            
                foreach ($a_AdvancedServices as $k=>$value)
                {
                    echo '<li>'.$GLOBALS['AdvancedServices'][$value].'</li>' ;
                }
            }
?>
</ul>
<p>&nbsp;</p>

<h4 class="TitleTwo">Enhanced Services</h4>
<ul class="listOne">
<?php 
            if(trim($locum['Locum']['EnhancedServices']))
            {
                $a_EnhancedServices = explode(',',$locum['Locum']['EnhancedServices']);
            
                foreach ($a_EnhancedServices as $k=>$value)
                {
                    echo '<li>'.$GLOBALS['EnhancedServices'][$value].'</li>' ;
                }
            }
?>
</ul>
<p>&nbsp;</p>

<h4 class="TitleTwo">Patient Group Directives</h4>
<p><?php echo $locum['Locum']['PatientGroupDirectives']?></p>
<p>&nbsp;</p>

<h4>Recomendations</h4>
<p>This Locum has been recommended by <b class="blue"><?php echo $locum['Locum']['i_NumberMaxRate']?></b> Pharmacies</p>
<p>&nbsp;</p>

<h4 class="TitleTwo">Match Rating</h4>
<img src="<?php echo  Router::url('/')?>img/stars_<?php echo $locum['Locum']['i_RateAVG']?>.png" width="294" height="28" alt="rating">
<p>&nbsp;</p>
</div>
<!--COLUMN 2-->

<!--COLUMN 3-->
<div class="FourColGrid_c3">
<div id="eventCalendarNoCache"></div>
<script>
$(document).ready(function() {
$("#eventCalendarNoCache").eventCalendar({
eventsjson: '<?php echo Router::url('/').'pharmacies/getJson/'.$id ?>',
cacheJson: false,
multiple: true,
allowClick:false,
jumpMonth:'<?php echo $jump;?>'
});
});
</script>
<p>Calendar key</p>
<ul class="listTwo">
<li class="unavailable"> = Locum unavailable</li>
<li class="available"> = Locum available</li>
</ul>
</div>
<!--COLUMN 3-->

<!--COLUMN 4-->
<div class="FourColGrid_c4">
<h6 class="TitleFive">Locum Search</h6>
<?php echo $this->element('search_for_pharmacy');?>
<br>
<?php echo $this->element('invite_pharmacy');?>
</div>
<!--COLUMN 4-->